package com.tosit.bmx.common.speech;

import com.baidu.aip.speech.AipSpeech;

/**
 * @author tsl
 * @date 2018/4/16 18:23
 */
public class MyAipSpeech {
//    public static final String APP_ID = "11104870";
//    public static final String API_KEY = "QI5C9V1uVRLpghPfZ7Zfu1uY";
//    public static final String SECRET_KEY = "QfMwjuIuT7wWe2kV2RNyBSpGxYgG04sp";

    private static AipSpeech aipSpeech;

    private MyAipSpeech() {
    }

    /**
     * 获取音频客户端
     *
     * @param
     * @return
     * @author tsl
     * @date 2018/4/16 18:31
     */
    public static synchronized AipSpeech getAipSpeech() {
        if (aipSpeech == null) {
            aipSpeech = new AipSpeech("11104870", "QI5C9V1uVRLpghPfZ7Zfu1uY", "QfMwjuIuT7wWe2kV2RNyBSpGxYgG04sp");
        }
        return aipSpeech;
    }


}
